﻿using System;
using System.Collections.Generic;

namespace ScriptXCompiler
{
    class ConsoleOutput : IOutput
    {
        public void WriteWithIdent(int number, string str)
        {
            string s = new string(' ', number);
            Console.Write(s + str);
        }

        public void WriteWithIdent(int number, string fmt, params object[] args)
        {
            string s = new string(' ', number);
            Console.Write(s + string.Format(fmt, args));
        }

        public void WriteLineWithIdent(int number, string str)
        {
            string s = new string(' ', number);
            Console.WriteLine(s + str);
        }

        public void WriteLineWithIdent(int number, string fmt, params object[] args)
        {
            string s = new string(' ', number);
            Console.WriteLine(s + string.Format(fmt, args));
        }

        public void Write(string str)
        {
            Console.Write(str);
        }

        public void Write(string fmt, params object[] args)
        {
            Console.Write(fmt, args);
        }


        public void WriteLine(string str)
        {
            Console.WriteLine(str);
        }

        public void WriteLine(string fmt, params object[] args)
        {
            Console.WriteLine(fmt, args);
        }

        public void Compress()
        {
        }

        public void Flush()
        {
        }

        public void Dispose()
        {
        }
    }
}
